<?php
/**
 * Created by PhpStorm.
 * Admininfo: Administrator
 * Date: 2017/12/6
 * Time: 15:25
 */

namespace app\common\controller;
use app\admin\model\Column;
use think\Controller;
use think\Request;
use think\Hook;

class Basehome extends Controller
{
	function __construct(Request $request = null)
	{

		parent::__construct($request);
        $Columnmodel=new Column();
        $list=$Columnmodel->where('status',1)->order('sort asc')->select();
        $action=$request->action();
        if($action=="detial"){
            $action='news';
        }
        $this->assign('columnlist',$list);
        $this->assign('action',$action);
	}
}